<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>四组的git</title>
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <style>
        body {
            background-color: rgba(153, 158, 160, 0.6);
        }

        .wenqiong {
            width: 300px;
            height: 200px;
            font-size: 20px;
            text-align: center;
            line-height: 200px;
            font-family: '宋体';
            background-color: skyblue;
            display: none;

        }

        body {
            background-color: rgba(153, 158, 160, 0.6);
        }

        .qinliyan {
            border: 1px solid #000;
            font-size: 25px;
            background-color: #6cf;
            color: #fff;
            width: 100px;
            text-align: center;
            display: none;
        }

        .box {
            font-size: 60px;
            display: none;
        }

        .btn1,
        .sbtn2 {
            width: 75px;
            height: 40px;
            background-color: #a8c0ff;
            border-radius: 10px;
            font-weight: 700;
            border: 0;
        }

        #zmh {
            width: 200px;
            height: 150px;
            color: #a8c0ff;
            font-size: 30px;
            display: none;
        }
    </style>
</head>

<body>
    <!-- 文 -->
    <button class="wenqiongbtn">点我呀</button>
    <div class="wenqiong">
        我爱写代码，代码也爱我
    </div>
    <br><br>

    <!-- 易 -->
    <button class="ylq">猜猜我是谁</button>
    <div class="lq" style="display: none;">易立权</div>
    <br><br>

    <!-- 秦 -->
    <div class="qinliyan">秦丽艳</div>
    <button class="qin"> 点击显示名字</button>
    <br><br>

    <!-- 李 -->
    <button class="lidx">随便吧</button>
    <div style="display:none ;" class="lidxi">李东熙</div>
    <br><br>

    <!-- 卢 -->
    <button class="btn">点击显示名字</button>
    <div class="box">卢龙斌</div>
    <br><br>

    <!-- 张 -->
    <button id="btn1">显示名字</button>
    <button id="btn2">隐藏名字</button>
    <div id="zmh">张明浩</div>
    <br><br>
    <script>



        // 文
        document.querySelector('.wenqiongbtn').addEventListener('click', function () {
            document.querySelector('.wenqiong').style.display = 'block'
        })

        // 易
        document.querySelector('.ylq').addEventListener('click', function () {
            document.querySelector('.lq').style.display = 'block'
        })

        // 秦
        $(() => {
            $('.qin').on('click', function () {
                $('.qinliyan').show()
            })


        })

        // 李
        document.querySelector('.lidx').addEventListener('click', function () {
            document.querySelector('.lidxi').style.display = 'block'
        })


        // 卢
        const box = document.querySelector('.box')
        document.querySelector('.btn').addEventListener('click', () => {
            box.style.display = 'block'
        })

        // 张
        document.querySelector('#btn1').addEventListener('click', function () {
            document.querySelector('#zmh').style.display = 'block'
        })
        document.querySelector('#btn2').addEventListener('click', function () {
            document.querySelector('#zmh').style.display = 'none'
        })
    </script>



</body>

</html>